package shop.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import shop.model.Product;
import shop.repository.ProductRepository;

import java.util.List;

@Service
public class ProductService {

    @Autowired
    private ProductRepository productRepository;

    //搜索产品类型，返还所有相应信息。
/*    public List<Product> findByPtype(String type){
        List<Product> products = productRepository.
    }*/

}


